<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery.min.js"></script>
    <script src="js/template-web.js"></script>
    <script src="js/news.js"></script>
</head>

<body>
    <div id="news-list"></div>

    <script type="text/html" id="tpl-news">
        {{each data}}
        <h3>{{$value.title}}</h3>
        <img src="{{'http://www.liulongbin.top:3006'+$value.img}}" alt="">
        {{each $value.tags}}
        <span>{{$value}}</span>
        {{/each}}
        <br>
        新闻来源-----<span>{{$value.source}}</span>
        <!-- 新闻的来源 -->
        <br>
        <!-- 时间 -->
        时间是--------<span>{{$value.time | dateFormat}}</span>

        <br>
        评论数量是------ <span>{{$value.cmtcount}}</span>
        {{/each}}
    </script>
</body>

</html>